<?
$tmppath="../";
REQUIRE ($tmppath."include/login.php");
REQUIRE ($tmppath."$templates/up.php");

REQUIRE ($tmppath."protect/connect.php");

$query="SELECT race_tm,race_name, race_sousname, race_realname, race_pop_ini, race_tn, race_for,race_int,race_pou,race_end,race_agi, race_pic,description FROM urace where race_id=$raceid";
$resultat=mysql_query($query);
$race =mysql_fetch_array($resultat);

$TM=$race[0];
$nom=$race[1];
$sousnom=$race[2];
$appelation=$race[3];
$TN=$race[5];
$population=$race[4];
$imagerace=$race[11];


$for=$race[6];
$int=$race[7];
$pou=$race[8];
$end=$race[9];
$agi=$race[10];

$description=$race[12];

$description=htmlentities($description);
  $description=nl2br($description);

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Document sans titre</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="middle" bordercolor="#000000"><img src="../templates/default/ligne.png" width="390" height="35">
      <br>
      <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
        <tr> 
          <td width="38%"><div align="center"><? if ($race[11]!="" ){echo "<img src=\"../images/race/$race[11]\" width=\"150\" height=\"200\" >";}  ?> </div></td>
          <td width="62%"><div align="justify">
              <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                <tr valign="middle"> 
                  <td width="48%"> <div align="right"><font color="#FFFF00"><strong>Race 
                      :</strong></font></div></td>
                  <td width="52%"> <p><? echo "$nom" ?> </p></td>
                </tr>
                <tr valign="middle"> 
                  <td> <div align="right"><font color="#FFFF00"><strong>Sous-race 
                      :</strong></font></div></td>
                  <td> <p><? echo $sousnom?></p></td>
                </tr>
                <tr valign="middle"> 
                  <td> <div align="right"><font color="#FFFF00"><strong>Nom :</strong></font></div></td>
                  <td> <p><? echo $appelation?></p></td>
                </tr>
                <tr valign="middle"> 
                  <td> <div align="right"><font color="#FFFF00"><strong>Pop depart 
                      : </strong></font></div></td>
                  <td> <p><? echo $population?></p></td>
                </tr>
                <tr valign="middle"> 
                  <td> <p align="right"><font color="#FFFF00"><strong>Taux Natalit&eacute; 
                      :</strong></font></p></td>
                  <td><? echo $TN?></td>
                </tr>
                  <tr valign="middle">
                  <td> <p align="right"><font color="#FFFF00"><strong>Taux Mortalit&eacute;
                      :</strong></font></p></td>
                  <td><? echo $TM?></td>
                </tr>
                <tr> 
                  <td colspan="2"><table width="100%" border="1" cellspacing="0" cellpadding="0">
                      <tr bordercolor="#666666"> 
                        <td width="20%"> <div align="center"><font color="#FFFF00"><em><strong>FOR</strong></em></font></div></td>
                        <td width="20%"> <div align="center"><font color="#FFFF00"><em><strong>INT</strong></em></font></div></td>
                        <td width="20%"> <div align="center"><font color="#FFFF00"><em><strong>POU</strong></em></font></div></td>
                        <td width="20%"> <div align="center"><font color="#FFFF00"><em><strong>END</strong></em></font></div></td>
                        <td width="20%"> <div align="center"><font color="#FFFF00"><em><strong>AGI</strong></em></font></div></td>
                      </tr>
                      <tr bordercolor="#666666"> 
                        <td> <? echo $for?> <div align="center"></div></td>
                        <td><? echo $int?> <div align="center"></div></td>
                        <td><? echo $pou?> <div align="center"></div></td>
                        <td><? echo $end?> <div align="center"></div></td>
                        <td><? echo $agi?> <div align="center"></div></td>
                      </tr>
                    </table></td>
                </tr>
              </table>
              
            </div></td>
        </tr>
      </table> 
      <img src="../templates/default/ligne.png" width="390" height="35"><br>
      <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
        <tr> 
          <td> <p align="center"><strong><u><font color="#FFFF00">Bonus de la 
              race :</font></u></strong></p>
            <p align="left">&nbsp;</p>
            </td>
        </tr>
      </table>
      <img src="../templates/default/ligne.png" width="390" height="35"> <br>
      <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
        <tr> 
          <td> <p align="center"><strong><u><font color="#FFFF00">Description 
              de la race</font></u></strong></p>
            <p align="left"><? echo $description; ?></p></td>
        </tr>
      </table> 
      <p><img src="../templates/default/ligne.png" width="390" height="35"></p>
      </td>
  </tr>
</table>

</body>
</html>
